<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>查询预订情况</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<form action="ScheduleServlet?opr=molist" method="post">
		预订人姓名：<input type="text" name="intendedName"><input type="submit" value="查询">
	</form>
	<table style="text-align:center">
		<tr>
			<td>预定编号</td>
			<td>会议室</td>
			<td>预订人姓名</td>
			<td>开始时间</td>
			<td>预订时长</td>
			<td>录入人姓名</td>
			<td>预定原因</td>
		</tr>
		<c:forEach items="${requestScope.scList }" var="sc">
			<tr>
				<td>${sc.id }</td>
				<td>
					<c:if test="${sc.boardroomId==1 }">1号会议室</c:if>
					<c:if test="${sc.boardroomId==2 }">2号会议室</c:if>
					<c:if test="${sc.boardroomId==3 }">3号会议室</c:if>
				</td>
				<td>${sc.intendedName }</td>
				<td>${sc.startTime }</td>
				<td>${sc.duration }</td>
				<td>${sc.enteringName }</td>
				<td>${sc.reson }</td>
			</tr>
		</c:forEach>
	</table>
	<a href="yuding.jsp">预定会议室</a>
</body>
</html>
